Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

Changes between Version 7 and Version 8 of Development FAQ


Ignore:
Timestamp:
Apr 28, 2007, 1:45:55 AM (17 years ago)
Author:
John Bailey
Comment:

Typo, grammar, and quoting fixes

Legend:

Unmodified
Added
Removed
Modified
  • Development FAQ

    v7 v8  
    1 == There needs to be an easy way to linkify the functions names below to our doxygen documentations. ==
    2 
    31= ["Development FAQ"] =
     2The following is a list of Frequently Asked Questions (FAQs), with answers, and notes related to development using !LibPurple.  (Note for developers: There needs to be an easy way to linkify the functions names below to our doxygen documentations.
    43
    54[[TOC(inline,noheading)]]
    65
    76== Accounts ==
    8 === I created an account. But it's not being saved. ===
    9 You need to use purple_accounts_add to add the account to the list of available accounts. This list of accounts is saved. Note that many of the functions require an account to be on that list. So you should always call purple_accounts_add after creating an account.
     7=== I created an account, but it's not being saved! ===
     8You need to use `purple_accounts_add()` to add the account to the list of available accounts. This list of accounts is saved. Note that many of the functions require an account to be on that list. So you should always call `purple_accounts_add()` after creating an account.
    109
    1110=== How do I get online with an account? ===
    1211There are two ways you can do this:
    13  * If you have other accounts online, and you want the new account to have the same status as those, then call purple_savedstatus_get_current to get the current status, and use gaim_savedstatus_activate_for_account for the account.
    14  * Otherwise, you can simply do purple_account_set_status to set the status of the account.
    15 An account needs to be enabled before it can be connected. So after doing either of the above, you need to enable the account by calling purple_account_set_enabled.
     12 * If you have other accounts online, and you want the new account to have the same status as those, then call `purple_savedstatus_get_current()` to get the current status, and use `purple_savedstatus_activate_for_account()` for the account.
     13 * Otherwise, you can simply do `purple_account_set_status()` to set the status of the account.
     14An account needs to be enabled before it can be connected. So after doing either of the above, you need to enable the account by calling `purple_account_set_enabled()`.
    1615
    1716
    1817== Conversations ==
    1918=== How can I create a conversation with someone? ===
    20 Use purple_conversation_new. Use PURPLE_CONV_TYPE_IM if the conversation is an IM (one-to-one person conversation), and use PURPLE_CONV_TYPE_CHAT if it's a multi-user conversation. One important thing to note here is that the name-property of the PurpleConversation struct is the name of the buddy you are creating a conversation with (the documentation states that this is the name of the conversation itself, but it is in fact also the name of the receiver buddy). So a call to purple_conversation_new takes the name of the buddy as its third argument.
     19Use `purple_conversation_new()`. Use `PURPLE_CONV_TYPE_IM` if the conversation is an IM (one-to-one person conversation), and use `PURPLE_CONV_TYPE_CHAT` if it's a multi-user conversation. One important thing to note here is that the name property of the `PurpleConversation` struct is the name of the buddy you are creating a conversation with (the documentation states that this is the name of the conversation itself, but it is in fact also the name of the receiving buddy). So a call to `purple_conversation_new()` takes the name of the buddy as its third argument.
    2120
    2221=== How can I send a message in a conversation? ===
    23 Use either purple_conv_im_send or purple_conv_chat_send. Note that the first parameter to either of these functions are '''not''' the conversation itself. Rather, it's the im-data/chat-data of the conversation which you can get from PURPLE_CONV_IM/PURPLE_CONV_CHAT.
     22Use either `purple_conv_im_send()` or `purple_conv_chat_send()`. Note that the first parameter to either of these functions are '''not''' the conversation itself. Rather, it's the IM data or chat data of the conversation which you can get from `PURPLE_CONV_IM`/`PURPLE_CONV_CHAT`.
    2423
    2524=== Is there a way that I can print something in the conversation window, but not send the message? ===
    26 Yes. Use purple_conv_im_write/purple_conv_chat_write.
     25Yes. Use `purple_conv_im_write()` or `purple_conv_chat_write()`.
    2726
    2827== Files and File Paths ==
     
    4948
    5049=== Should I use `snprintf()` or `vsnprintf()`? ===
    51 No.  Use the GLib wrapper functions instead.  They are `g_snprintf()` and `g_vsnprintf`.
     50No.  Use the GLib wrapper functions instead.  They are `g_snprintf()` and `g_vsnprintf()`.
    5251
    5352=== How do I get the settings directory? ===
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!